<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="districtJavaScript.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String menuName = request.getParameter("menuName") == null ? ""
			: (String) request.getParameter("menuName");
	boolean isCollected = (Boolean) request.getAttribute("isCollected") != null ? (Boolean) request.getAttribute("isCollected") : false;
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="租房,买房,三棵松,地产,中介" />
<meta name="description" content="三棵松地产" />
<title>三棵松地产</title>
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/common.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/BrightSide.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/mytestcss.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/frontpages/district/district.css" />
<script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>sks/js/frontpages/jquery.cookie.js"></script>
</head>
<body onload="javascript:changeMenu('<%=menuName%>');">
	<input id="buildingId" type="hidden" value=${building.buildingId }>
	<div class="wrap">
		<jsp:include page="../header.jsp"></jsp:include>
		<div class="nav-line">
			<a href="<%=basePath%>">SKS房地产</a> &gt; <a
				href="<%=basePath%>sks/district.do?method=list&menuName=village">
				小区</a> &gt; ${building.name }
		</div>
		<div id="clear"></div>
		<!-- header -->
		<div class="bc standw">
			<!--切换标签 star-->
		<div class="sxq_xqheadtab clearfix">
			<div class="tab_menu">
				<div class="menu">
					<a
						href="<%=basePath%>sks/districtInfo.do?method=base&menuName=village&buildingId=${building.buildingId }">小区概况<span></span>
					</a> <a
						href="<%=basePath%>sks/districtInfo.do?method=photo&menuName=village&buildingId=${building.buildingId }">小区照片<span></span>
					</a> <a
						href="<%=basePath%>sks/districtInfo.do?method=map&menuName=village&buildingId=${building.buildingId }">小区地图<span></span>
					</a> <a
						href="<%=basePath%>sks/districtInfo.do?method=houseSaleList&menuName=village&buildingId=${building.buildingId }&isRent=Buy">出售房源<span></span>
					</a> <a
						href="<%=basePath%>sks/districtInfo.do?method=houseRentList&menuName=village&buildingId=${building.buildingId }">出租房源<span></span>
					</a> <a
						href="<%=basePath%>sks/districtInfo.do?method=detail&menuName=village&buildingId=${building.buildingId }"
						class="on">周边配套<span></span> </a>
				</div>
				<div style="clear: both;" ></div>
				<a href="javascript:void(0);" id="collectDistrict"
					onclick="<%= isCollected ? "del_attentioncommunity()" : "add_attentioncommunity()"%>"
					class="sc_link""><%= isCollected ? "取消收藏" : "收藏小区"%></a>
			</div>
		</div>
		</div>

		<div class="bc clearfix">

			<div class="sxq_bodyl fl clearfix">
				<!-- <div class="sxq_jgqscon1 mb10">
					
					<h1 class="sxq_mconh1">
						<span class="tit">小区详情</span>
					</h1>
					<div class="sxq_jgqslist1 clearfix">
						<table style="width: 100%;" class="common-table">
							<tr>
								<td class="label" style="width: 116px">地址：</td>
								<td colspan="3"><c:if test=" ${building.address == null}">-</c:if>
									${building.address }</td>
							</tr>
							<tr>
								<td class="label">物业类型：</td>
								<td><c:if test=" ${building.propertyType.name == null}">-</c:if>${building.propertyType.name
									}</td>
								<td class="label">总建筑面积：</td>
								<td><c:if test=" ${building.space == null}">-</c:if>${building.space
									}</td>
							</tr>
							<tr>
								<td class="label">开发商：</td>
								<td><c:if test=" ${building.developer == null}">-</c:if>${building.developer
									}&nbsp;</td>
								<td class="label">容积率：</td>
								<td><c:if test=" ${building.cubage == null}">-</c:if>${building.cubage
									}%</td>
							</tr>
							<tr>
								<td class="label">物业公司：</td>
								<td><c:if test=" ${building.propertyCompany == null}">-</c:if>${building.propertyCompany
									}</td>
								<td class="label">绿化率：</td>
								<td><c:if test=" ${building.afforest == null}">-</c:if>${building.afforest
									}%</td>
							</tr>
							<tr>
								<td class="label">物业管理费：</td>
								<td><c:if test=" ${building.propertyPrice == null}">-</c:if>${building.propertyPrice
									}元/平方米/月</td>
								<td class="label">停车位：</td>
								<td><c:if test=" ${building.carNumber == null}">-</c:if>${building.carNumber
									}</td>
							</tr>
							<tr>
								<td class="label">开工日期：</td>
								<td><c:if test=" ${building.beginDate == null}">-</c:if>
									<fmt:formatDate value='${building.beginDate}'
										pattern='yyyy-MM-dd' />
								</td>
								<td class="label">竣工日期：</td>
								<td><c:if test=" ${building.finishDate == null}">-</c:if>
									<fmt:formatDate value='${building.finishDate}'
										pattern='yyyy-MM-dd' />
								</td>
							</tr>
						</table>
					</div>
				</div>

				<div class="area_photo mb10">
					<div class="tit_com clearfix">
						<h2 class="tit_mod">
							<span><a href="#">小区介绍</a>
							</span>
						</h2>
					</div>
					<div class='info_mode_wrap'>
						<div class="intro">
							<p>${building.intro }</p>
						</div>
					</div>
				</div>
				 -->
				<div class="area_photo mb10">					
					<div class='info_mode_wrap'>
						<div class='peitao'>
							<span class="fb f12 color_000">地 铁：</span>
							${building.metroStation.metroByMetroId.name }&nbsp; <br> <span
								class="fb f12 color_000">教育：</span> ${building.educate } <br>
							<span class="fb f12 color_000">医疗：</span> ${building.medical } <br>
							<span class="fb f12 color_000">饮食：</span> ${building.repast } <br>
						</div>
					</div>
				</div>

				<!--内容3 end-->
			</div>
			<!--第二主体_l end-->
			<!--第二主体_r star-->
		<!--第二主体_r end-->
			<div class="side_content">
			<div class="historybox nolist">
				<h4 style="margin-bottom: 5px;">你最近浏览过的房源</h4>
				<table id="historyhouse"></table>
			</div>
			<div id="IFX_p13" style="clear: both; margin: 15px 0 15px 0px;"></div>
			<div
				style="width: 210px; height: 220px; margin: 0 auto; padding: 9px 0 9px 9px; margin-top: 5px;"
				id="adanjuke_zoneid_comm_001"></div>
			</div>	
		</div>
			<div id="clear"></div>
			<div class="blank10"></div>
			<!-- footer starts here -->
			<jsp:include page="../rooster.jsp"></jsp:include>
</body>
<script type="text/javascript">
changeMenu('<%=menuName%>');
function getHistoryHouse() {
	$.ajax({
        type : "POST",
        url : "/sks/house.do",
        data : "method=history",
        dataType : "text",
        success : callback
    });
}
function callback(data) {
	var obj = $('#historyhouse');
	obj.html(data);
}
getHistoryHouse();
</script>
</html>